package com.farm.strategy;

// 上下文类
public class PathPlanner {
    private PathPlanningStrategy strategy;

    public void setStrategy(PathPlanningStrategy strategy) {
        this.strategy = strategy;
    }

    public void executePathPlanning(String machineName) {
        strategy.planPath(machineName);
    }
}